import akka.actor.ActorSystem;
import com.typesafe.config.Config;
import com.typesafe.config.ConfigFactory;
import xhhx.test.ClusterAkka1;
import xhhx.test.TestAkka;

public class Main {
    public static void main(String[] args) {
//        try{
//            TestAkka.Test();
//        }catch (Exception e){
//            e.printStackTrace();
//        }

        Config config = ConfigFactory.parseString(
                "akka.remote.netty.tcp.port=2551")
                .withFallback(ConfigFactory.load("cluster"));

        ActorSystem system = ActorSystem.create("ClusterSystem", config);
        system.actorOf(ClusterAkka1.props());
    }

}


